function varargout = mnspdb(varargin)
% MNSPDB M-file for mnspdb.fig
%      MNSPDB, by itself, creates a new MNSPDB or raises the existing
%      singleton*.
%
%      H = MNSPDB returns the handle to a new MNSPDB or the handle to
%      the existing singleton*.
%
%      MNSPDB('CALLBACK',hObject,eventData,handles,...) calls the local
%      function named CALLBACK in MNSPDB.M with the given input arguments.
%
%      MNSPDB('Property','Value',...) creates a new MNSPDB or raises the
%      existing singleton*.  Starting from the left, property value pairs are
%      applied to the GUI before mnspdb_OpeningFcn gets called.  An
%      unrecognized property name or invalid value makes property application
%      stop.  All inputs are passed to mnspdb_OpeningFcn via varargin.
%
%      *See GUI Options on GUIDE's Tools menu.  Choose "GUI allows only one
%      instance to run (singleton)".
%
% See also: GUIDE, GUIDATA, GUIHANDLES

% Edit the above text to modify the response to help mnspdb

% Last Modified by GUIDE v2.5 04-May-2011 10:57:51

% Begin initialization code - DO NOT EDIT
gui_Singleton = 1;
gui_State = struct('gui_Name',       mfilename, ...
                   'gui_Singleton',  gui_Singleton, ...
                   'gui_OpeningFcn', @mnspdb_OpeningFcn, ...
                   'gui_OutputFcn',  @mnspdb_OutputFcn, ...
                   'gui_LayoutFcn',  [] , ...
                   'gui_Callback',   []);
if nargin && ischar(varargin{1})
    gui_State.gui_Callback = str2func(varargin{1});
end

if nargout
    [varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});
else
    gui_mainfcn(gui_State, varargin{:});
end
% End initialization code - DO NOT EDIT


% --- Executes just before mnspdb is made visible.
function mnspdb_OpeningFcn(hObject, eventdata, handles, varargin)
% This function has no output args, see OutputFcn.
% hObject    handle to figure
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
% varargin   command line arguments to mnspdb (see VARARGIN)

% Choose default command line output for mnspdb
handles.output = hObject;

% Update handles structure
guidata(hObject, handles);

% UIWAIT makes mnspdb wait for user response (see UIRESUME)
% uiwait(handles.figure1);


% --- Outputs from this function are returned to the command line.
function varargout = mnspdb_OutputFcn(hObject, eventdata, handles) 
% varargout  cell array for returning output args (see VARARGOUT);
% hObject    handle to figure
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)

% Get default command line output from handles structure
varargout{1} = handles.output;


% --- Executes on button press in pushbutton1.
function pushbutton1_Callback(hObject, eventdata, handles)
% hObject    handle to pushbutton1 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
soal_sel = get(handles.popupmenu_soal,'Value');
metode_sel = get(handles.popupmenu_metode,'Value');
set(handles.edit_jawaban, 'String', '');
switch(soal_sel)
    case 1
        loe = get(handles.popupmenu_1_epsilon,'String');
        ioe = get(handles.popupmenu_1_epsilon,'Value');
        e = loe(ioe);
        t = str2double(get(handles.edit_1_t,'String'));
        h = str2double(get(handles.edit_h,'String'));
                
        syms a b c;
        f = e*b^2 - b; 

        cla(handles.axes1,'reset');
        ezplot(f);

        switch(metode_sel)
            case 1
                [r,r2] = euler2(f, 0, 1,0, t, h);
            case 2
                [r,r2] = heun2(f, 0, 1,0, t, h);
            case 3
                [r,r2] = y_RK32(f, 0, 1,0, t, h);
            case 4
                [r,r2] = y_RK42(f, 0, 1,0, t, h);
            case 5
                [r,r2] = y_Adams_Bashforth_Moulton2(f, 0, 1,0, t, h);
        end
        r = strcat('x=', num2str(r),'  x''=', num2str(r2), '   x"=', num2str(subs(f,[a b c],[0 r 0])));

    case 2
        h = str2double(get(handles.edit_h,'String'));
        x = str2double(get(handles.soal2_x,'String'));
        
        syms a b c;
        f = -((0.1)^(3/2) * ((b^3) +3*a*b*b*c))/3;
        dy2 = subs(f,[a b c],[0 1 0]);
        dy = dy2*h;
        y = 1 + dy*h;
        f = (-((2*c) + a*(((b^2)*0.1)^(3/2)))) / a;

        %cla(handles.axes1,'reset');
        %ezplot3(f);
        
        switch(metode_sel)
            case 1
                [r,r2] = euler2(f, h, y,dy, x, h);
            case 2
                [r,r2] = heun2(f, h, y,dy, x, h);
            case 3
                [r,r2] = y_RK32(f, h, y,dy, x, h);
            case 4
                [r,r2] = y_RK42(f, h, y,dy, x, h);
            case 5
                [r,r2] = y_Adams_Bashforth_Moulton2(f, h, y,dy, x, h);
        end
        r = strcat('y=', num2str(r), ' y''=', num2str(r2), '   y"=', num2str(subs(f,[a b c],[x r r2])));
    case 3
        R = 4.7;
        C = 1000;   %microfarad
        L = 50;     %milihenry
        h = 0.002;  %selang waktu 0.002 detik
        t = 0.1;
        syms a b c;
        f = (-R*c - b/C)/L;
        f2 = (15-R*c - b/C)/L;
        y2 = subs(f2,[a b c],[0 0 0]);
        y1 = y2*h;
        y = y1*h;
        cla(handles.axes1,'reset');
        ezplot(f);

        
        switch(metode_sel)
            case 1
                [r,r2] = euler2(f, h, y,y1, t, h);
            case 2
                [r,r2] = heun2(f, h, y,y1, t, h);
            case 3
                [r,r2] = y_RK32(f, h, y,y1, t, h);
            case 4
                [r,r2] = y_RK42(f, h, y,y1, t, h);
            case 5
                [r,r2] = y_Adams_Bashforth_Moulton2(f, h, y,y1, t, h);
        end

        r = strcat('i=', num2str(r), ' i''=', num2str(r2), '   i"=', num2str(subs(f,[a b c],[t r r2])), '   V=', num2str(L*r2+R*r+r*t/C));        
        
    case 4
        tahun = str2double(get(handles.edit_geo_t,'String'));
        
        syms a b;
        f = 0.02 * b - 0.00004 * b^2;
        
        cla(handles.axes1,'reset');
        ezplot(f, [76.4 276.4]);
        
        switch(metode_sel)
            case 1
                r = euler(f, 1900, 76.4, tahun, 10);
            case 2
                r = heun(f, 1900, 76.4, tahun, 10);
            case 3
                r = y_RK3(f, 1900, 76.4, tahun, 10);
            case 4
                r = y_RK4(f, 1900, 76.4, tahun, 10);
            case 5
                r = y_Adams_Bashforth_Moulton(f, 1900, 76.4, tahun, 10);
        end
    case 5
        syms a b;
        f = a^3 + b^2;
        
        cla(handles.axes1,'reset');
        ezplot(f, [-5 5]);
        
        switch(metode_sel)
            case 1
                r = euler(f, 0, 0, 1.4, 0.2);
            case 2
                r = heun(f, 0, 0, 1.4, 0.2);
            case 3
                r = y_RK3(f, 0, 0, 1.4, 0.2);
            case 4
                r = y_RK4(f, 0, 0, 1.4, 0.2);
            case 5
                r = y_Adams_Bashforth_Moulton(f, 0, 0, 1.4, 0.2);
        end
    case 6
        loh = get(handles.popupmenu_matb_h,'String');
        ioh = get(handles.popupmenu_matb_h,'Value');
        h = str2double(loh(ioh));
        x = str2double(get(handles.edit_matb_x,'String'));
        
        syms a b;
        f = exp(-2*a) - 2*b;
        
        cla(handles.axes1,'reset');
        ezplot(f, [-5 15]);
        
        switch(metode_sel)
            case 1
                r = euler(f, 0, 0.1, x, h);
            case 2
                r = heun(f, 0, 0.1, x, h);
            case 3
                r = y_RK3(f, 0, 0.1, x, h);
            case 4
                r = y_RK4(f, 0, 0.1, x, h);
            case 5
                r = y_Adams_Bashforth_Moulton(f, 0.1, 0, x, h);
        end
    case 7
        h = str2double(get(handles.edit_h,'String'));
        x = str2double(get(handles.edit_matc_x,'String'));
        
        syms a b c;
        f = 0 - 0.5*b;
        
        cla(handles.axes1,'reset');
        ezplot(f, [-5 15]);
        
        switch(metode_sel)
            case 1
                g = 4 - 0.3*c - 0.1*b;
                [r y]= euler3(f,g,0,4,6,x,h);
            case 2
                g = 4 - 0.3*c - 0.1*b;
                [r y]= heun3(f,g,0,4,6,x,h);
            case 3
                g = 4 - 0.3*c - 0.1*b;
                [r y]= heun3(f,g,0,4,6,x,h);
            case 4
                g = 4 - 0.3*c - 0.1*b;
                [r y]= y_RK43(f,g,0,4,6,x,h);
            case 5
                g = 4 - 0.3*c - 0.1*b;
                [r y]= y_Adams3(f,g,0,4,6,x,h);
        end
        
        r = strcat(' y=', num2str(r), ' y''=', num2str(subs(f,[a b c],[x, r y])),'z=', num2str(y),  ' z''=', num2str(subs(g,[a b c],[x, r y])));
end
set(handles.edit_jawaban, 'String', r);

% --- Executes on selection change in popupmenu_soal.
function popupmenu_soal_Callback(hObject, eventdata, handles)
% hObject    handle to popupmenu_soal (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)

% Hints: contents = get(hObject,'String') returns popupmenu_soal contents as cell array
%        contents{get(hObject,'Value')} returns selected item from popupmenu_soal
soal_sel = get(handles.popupmenu_soal,'Value');
switch(soal_sel)
    case 1
        set(handles.uipanel1,'Visible','on');
        set(handles.uipanel2,'Visible','off');
        set(handles.uipanel3,'Visible','off');
        set(handles.uipanel4,'Visible','off');
        set(handles.uipanel5,'Visible','off');
        set(handles.uipanel6,'Visible','off');
        set(handles.uipanel7,'Visible','off');
    case 2
        set(handles.uipanel1,'Visible','off');
        set(handles.uipanel2,'Visible','on');
        set(handles.uipanel3,'Visible','off');
        set(handles.uipanel4,'Visible','off');
        set(handles.uipanel5,'Visible','off');
        set(handles.uipanel6,'Visible','off');
        set(handles.uipanel7,'Visible','off');
    case 3
        set(handles.uipanel1,'Visible','off');
        set(handles.uipanel2,'Visible','off');
        set(handles.uipanel3,'Visible','on');
        set(handles.uipanel4,'Visible','off');
        set(handles.uipanel5,'Visible','off');
        set(handles.uipanel6,'Visible','off');
        set(handles.uipanel7,'Visible','off');
    case 4
        set(handles.uipanel1,'Visible','off');
        set(handles.uipanel2,'Visible','off');
        set(handles.uipanel3,'Visible','off');
        set(handles.uipanel4,'Visible','on');
        set(handles.uipanel5,'Visible','off');
        set(handles.uipanel6,'Visible','off');
        set(handles.uipanel7,'Visible','off');
    case 5
        set(handles.uipanel1,'Visible','off');
        set(handles.uipanel2,'Visible','off');
        set(handles.uipanel3,'Visible','off');
        set(handles.uipanel4,'Visible','off');
        set(handles.uipanel5,'Visible','on');
        set(handles.uipanel6,'Visible','off');
        set(handles.uipanel7,'Visible','off');
    case 6
        set(handles.uipanel1,'Visible','off');
        set(handles.uipanel2,'Visible','off');
        set(handles.uipanel3,'Visible','off');
        set(handles.uipanel4,'Visible','off');
        set(handles.uipanel5,'Visible','off');
        set(handles.uipanel6,'Visible','on');
        set(handles.uipanel7,'Visible','off');
    case 7
        set(handles.uipanel1,'Visible','off');
        set(handles.uipanel2,'Visible','off');
        set(handles.uipanel3,'Visible','off');
        set(handles.uipanel4,'Visible','off');
        set(handles.uipanel5,'Visible','off');
        set(handles.uipanel6,'Visible','off');
        set(handles.uipanel7,'Visible','on');
end

% --- Executes during object creation, after setting all properties.
function popupmenu_soal_CreateFcn(hObject, eventdata, handles)
% hObject    handle to popupmenu_soal (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    empty - handles not created until after all CreateFcns called

% Hint: popupmenu controls usually have a white background on Windows.
%       See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
    set(hObject,'BackgroundColor','white');
end


% --- Executes on selection change in popupmenu_metode.
function popupmenu_metode_Callback(hObject, eventdata, handles)
% hObject    handle to popupmenu_metode (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)

% Hints: contents = get(hObject,'String') returns popupmenu_metode contents as cell array
%        contents{get(hObject,'Value')} returns selected item from popupmenu_metode


% --- Executes during object creation, after setting all properties.
function popupmenu_metode_CreateFcn(hObject, eventdata, handles)
% hObject    handle to popupmenu_metode (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    empty - handles not created until after all CreateFcns called

% Hint: popupmenu controls usually have a white background on Windows.
%       See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
    set(hObject,'BackgroundColor','white');
end



function edit_jawaban_Callback(hObject, eventdata, handles)
% hObject    handle to edit_jawaban (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)

% Hints: get(hObject,'String') returns contents of edit_jawaban as text
%        str2double(get(hObject,'String')) returns contents of edit_jawaban as a double


% --- Executes during object creation, after setting all properties.
function edit_jawaban_CreateFcn(hObject, eventdata, handles)
% hObject    handle to edit_jawaban (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    empty - handles not created until after all CreateFcns called

% Hint: edit controls usually have a white background on Windows.
%       See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
    set(hObject,'BackgroundColor','white');
end


% --- Executes on selection change in popupmenu_1_epsilon.
function popupmenu_1_epsilon_Callback(hObject, eventdata, handles)
% hObject    handle to popupmenu_1_epsilon (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)

% Hints: contents = get(hObject,'String') returns popupmenu_1_epsilon contents as cell array
%        contents{get(hObject,'Value')} returns selected item from popupmenu_1_epsilon


% --- Executes during object creation, after setting all properties.
function popupmenu_1_epsilon_CreateFcn(hObject, eventdata, handles)
% hObject    handle to popupmenu_1_epsilon (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    empty - handles not created until after all CreateFcns called

% Hint: popupmenu controls usually have a white background on Windows.
%       See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
    set(hObject,'BackgroundColor','white');
end



function edit_1_t_Callback(hObject, eventdata, handles)
% hObject    handle to edit_1_t (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)

% Hints: get(hObject,'String') returns contents of edit_1_t as text
%        str2double(get(hObject,'String')) returns contents of edit_1_t as a double


% --- Executes during object creation, after setting all properties.
function edit_1_t_CreateFcn(hObject, eventdata, handles)
% hObject    handle to edit_1_t (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    empty - handles not created until after all CreateFcns called

% Hint: edit controls usually have a white background on Windows.
%       See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
    set(hObject,'BackgroundColor','white');
end


% --- Executes during object creation, after setting all properties.
function popupmenu_soal_CreateFcn(hObject, eventdata, handles)
% hObject    handle to popupmenu_soal (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    empty - handles not created until after all CreateFcns called

% Hint: popupmenu controls usually have a white background on Windows.
%       See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
    set(hObject,'BackgroundColor','white');
end



function edit_geo_t_Callback(hObject, eventdata, handles)
% hObject    handle to edit_geo_t (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)

% Hints: get(hObject,'String') returns contents of edit_geo_t as text
%        str2double(get(hObject,'String')) returns contents of edit_geo_t as a double


% --- Executes during object creation, after setting all properties.
function edit_geo_t_CreateFcn(hObject, eventdata, handles)
% hObject    handle to edit_geo_t (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    empty - handles not created until after all CreateFcns called

% Hint: edit controls usually have a white background on Windows.
%       See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
    set(hObject,'BackgroundColor','white');
end



function edit_matc_x_Callback(hObject, eventdata, handles)
% hObject    handle to edit_matc_x (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)

% Hints: get(hObject,'String') returns contents of edit_matc_x as text
%        str2double(get(hObject,'String')) returns contents of edit_matc_x as a double


% --- Executes during object creation, after setting all properties.
function edit_matc_x_CreateFcn(hObject, eventdata, handles)
% hObject    handle to edit_matc_x (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    empty - handles not created until after all CreateFcns called

% Hint: edit controls usually have a white background on Windows.
%       See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
    set(hObject,'BackgroundColor','white');
end



function edit_matc_h_Callback(hObject, eventdata, handles)
% hObject    handle to edit_matc_h (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)

% Hints: get(hObject,'String') returns contents of edit_matc_h as text
%        str2double(get(hObject,'String')) returns contents of edit_matc_h as a double


% --- Executes during object creation, after setting all properties.
function edit_matc_h_CreateFcn(hObject, eventdata, handles)
% hObject    handle to edit_matc_h (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    empty - handles not created until after all CreateFcns called

% Hint: edit controls usually have a white background on Windows.
%       See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
    set(hObject,'BackgroundColor','white');
end


% --- Executes on selection change in popupmenu_matb_h.
function popupmenu_matb_h_Callback(hObject, eventdata, handles)
% hObject    handle to popupmenu_matb_h (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)

% Hints: contents = get(hObject,'String') returns popupmenu_matb_h contents as cell array
%        contents{get(hObject,'Value')} returns selected item from popupmenu_matb_h


% --- Executes during object creation, after setting all properties.
function popupmenu_matb_h_CreateFcn(hObject, eventdata, handles)
% hObject    handle to popupmenu_matb_h (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    empty - handles not created until after all CreateFcns called

% Hint: popupmenu controls usually have a white background on Windows.
%       See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
    set(hObject,'BackgroundColor','white');
end



function edit_matb_x_Callback(hObject, eventdata, handles)
% hObject    handle to edit_matb_x (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)

% Hints: get(hObject,'String') returns contents of edit_matb_x as text
%        str2double(get(hObject,'String')) returns contents of edit_matb_x as a double


% --- Executes during object creation, after setting all properties.
function edit_matb_x_CreateFcn(hObject, eventdata, handles)
% hObject    handle to edit_matb_x (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    empty - handles not created until after all CreateFcns called

% Hint: edit controls usually have a white background on Windows.
%       See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
    set(hObject,'BackgroundColor','white');
end



function edit_h_Callback(hObject, eventdata, handles)
% hObject    handle to edit_h (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)

% Hints: get(hObject,'String') returns contents of edit_h as text
%        str2double(get(hObject,'String')) returns contents of edit_h as a double


% --- Executes during object creation, after setting all properties.
function edit_h_CreateFcn(hObject, eventdata, handles)
% hObject    handle to edit_h (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    empty - handles not created until after all CreateFcns called

% Hint: edit controls usually have a white background on Windows.
%       See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
    set(hObject,'BackgroundColor','white');
end


% --- Executes on selection change in popupmenu5.
function popupmenu5_Callback(hObject, eventdata, handles)
% hObject    handle to popupmenu5 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)

% Hints: contents = get(hObject,'String') returns popupmenu5 contents as cell array
%        contents{get(hObject,'Value')} returns selected item from popupmenu5


% --- Executes during object creation, after setting all properties.
function popupmenu5_CreateFcn(hObject, eventdata, handles)
% hObject    handle to popupmenu5 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    empty - handles not created until after all CreateFcns called

% Hint: popupmenu controls usually have a white background on Windows.
%       See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
    set(hObject,'BackgroundColor','white');
end



function soal2_x_Callback(hObject, eventdata, handles)
% hObject    handle to soal2_x (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)

% Hints: get(hObject,'String') returns contents of soal2_x as text
%        str2double(get(hObject,'String')) returns contents of soal2_x as a double


% --- Executes during object creation, after setting all properties.
function soal2_x_CreateFcn(hObject, eventdata, handles)
% hObject    handle to soal2_x (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    empty - handles not created until after all CreateFcns called

% Hint: edit controls usually have a white background on Windows.
%       See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
    set(hObject,'BackgroundColor','white');
end
